import 'package:get/get.dart';
import 'package:yt_devops/resources/str_res_keys.dart';

import '../../../../routers/router_path.dart';

class DeviceScanFailController extends GetxController {
  int faiType = 0; // 0 识别不出二维码 1 二维码不属于本系统

  String sn = '';
  late int siteId;
  String tip  = ResKey.scanFailTip.tr;
  // {
  //   if (faiType == 0) {
  //     return ResKey.scanFailTip.tr;
  //   } else {
  //     return '${ResKey.notFindDeviceBySn} $sn';
  //   }
  // }

  @override
  void onInit() {
    super.onInit();

    tip = Get.arguments['message'].toString();
    siteId = Get.arguments['siteId'];
  }

  @override
  void onReady() {}

  @override
  void onClose() {}

  void manualAddDevice(){
    Get.toNamed(RouterPath.scanFailMannualAccess,arguments: {
      'siteId':siteId,
    });
  }
}
